package com.web;

import com.pojo.CeShi_wzl;
import com.service.CeShiService_wzl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/ceshi")
public class CeShiController_wzl {
    @Autowired
    private CeShiService_wzl ceShiServiceWzl;
    @RequestMapping("/listCeShi")
    public List<CeShi_wzl> listCeShi_wzl(String cTitle){
        return ceShiServiceWzl.listCeShi_wzl(cTitle);
    }
    @RequestMapping("/listId")
    public List<CeShi_wzl> listId_wzl(Integer cId){
        return ceShiServiceWzl.listId_wzl(cId);
    };
    @RequestMapping("/select")
    public List<CeShi_wzl> select(Integer cId, String cTitle) {
        return ceShiServiceWzl.select(cId,cTitle);
    }
}
